package com.bristua.barcode.order.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.order.biz.QueryOrderListBiz;
import com.bristua.barcode.order.model.condition.AdminQueryOrderParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/8/24.
 */
@RestController
public class QueryOrderListController {

    @Autowired
    private QueryOrderListBiz queryOrderListBiz;

    @PostMapping(value = "/order/queryList")
    public Result queryOrderList(@RequestBody AdminQueryOrderParams queryOrderParams){
        return HandleResultUtil.querySuccessResult(queryOrderListBiz.queryOrderList(queryOrderParams));
    }

}
